package com.lgy.springboot_example.controller;

import com.lgy.springboot_example.utils.DataResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 连冠业
 * @company 上海龟元数据科技有限公司
 * @create 2019/9/25
 */
@RestController
public class TestController {

    @RequestMapping("test")
    public DataResult<Object> test() {
        String data = "12ss";
        Integer result = Integer.parseInt(data);
        return new DataResult<>(result);
    }
}
